package com.hck.domain.doctor.model.valobj;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 登录请求值对象
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginRequest {
    
    /**
     * 账号
     */
    private String loginName;
    
    /**
     * 密码
     */
    private String password;
    

    
    /**
     * 验证登录参数
     */
    public boolean isValid() {
        return loginName != null && !loginName.trim().isEmpty()
            && password != null && !password.trim().isEmpty();
    }
} 